package day10_poly.多态作业;
//海鲜披萨
public class SeaFoodPizza extends Pizza{
    private String mixture;//配料
    public SeaFoodPizza() {
        super();
    }
    public SeaFoodPizza(String kind, int price, int size, String mixture) {
        super(kind, price, size);
        this.mixture = mixture;
    }

    public String getMixture() {
        return mixture;
    }

    public void setMixture(String mixture) {
        this.mixture = mixture;
    }


    public SeaFoodPizza(String mixture) {
        this.mixture = mixture;
    }
    public void show() {
        System.out.println("名称："+super.getKind());
        System.out.println("价格："+super.getPrice()+"元");
        System.out.println("大小："+super.getSize()+"寸");
        System.out.println("配料："+this.mixture);
    }
}
